<template>
  <el-col class="tac">
    <el-menu
        :default-active="$route.path"
        class="el-menu-demo"
        mode="horizontal"
        background-color="#fff"
        text-color="black"
        router>

      <el-menu-item index="/" class="custom-menu-item">
        首页
      </el-menu-item>
    <el-menu-item index="/home" class="custom-menu-item">
        Home页面
      </el-menu-item>
      <el-menu-item index="about" class="custom-menu-item">
       About页面
      </el-menu-item>
    </el-menu>
  </el-col>
</template>

<script lang="js">
import {ref} from 'vue'

export default {
  name: "myHeader",

}

</script>

<style scoped>
.el-menu-demo .custom-menu-item {
  font-size: 20px
}
</style>
